import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
	
  {//首页
    path: '/',
    name: 'home',
    component: resolve => require(['@/views/home/index.vue'],resolve)
  },
  // {//首页
  //   path: '/home',
  //   name: 'home',
  //   component: resolve => require(['@/views/home/index.vue'],resolve)
  // },
  {//关于我们
    path: '/gywm',
    name: 'gywm',
    component: resolve => require(['@/views/gywm/gywm.vue'],resolve)
  },


  {//产品中心
    path: '/cpzx',
    name: 'cpzx',
    component: resolve => require(['@/views/cpzx.vue'],resolve)
  },
  {//产品中心详细页
    path: '/cpzxxq',
    name: 'cpzxxq',
    component: resolve => require(['@/views/cpzx_c.vue'],resolve)
  },

  {//案例展示
    path: '/alzs',
    name: 'alzs',
    component: resolve => require(['@/views/alzs.vue'],resolve)
  },

  //  {//案例展示详情
  //   path: '/alzsxq',
  //   name: 'alzsxq',
  //   component: () => import('../views/alzs_c.vue')
  // },

  {//AGV详情
    path: '/AGVxq',
    name: 'AGVxq',
    component: resolve => require(['@/views/AGVxq.vue'],resolve)
  },
  {//AGV详情介绍
    path: '/AGVxqc',
    name: 'AGVxqc',
    component: resolve => require(['@/views/AGVxqc_c.vue'],resolve)
  },
  {//体验大厅
    path: '/tydt',
    name: 'tydt',
    component: resolve => require(['@/views/tydt.vue'],resolve)
  },
  {//项目详情
    path: '/xmxq',
    name: 'xmxq',
    component: resolve => require(['@/views/xmxq.vue'],resolve)
  },
  {//项目详情介绍
    path: '/xmxqc',
    name: 'xmxqc',
    component: resolve => require(['@/views/xmxqc_c.vue'],resolve)
  },

  {//新闻中心首页
    path: '/xwzx',
    name: 'xwzx',
    component: resolve => require(['@/views/xwzx/index.vue'],resolve)
  },
  {//新闻中心首页
    path: '/xq',
    name: 'xq',
    component: resolve => require(['@/views/xwzx/xq.vue'],resolve)
  },
  {//联系我们
    path: '/lxwm',
    name: 'lxwm',
    component: resolve => require(['@/views/lxwm.vue'],resolve)
  },
 //  {
 //    path: '/',
 //    name: 'home',
	// redirect: '/home',
 //    component: () => import('../views/dome.vue'),
	// children:[
	// 	// {
	// 	//  // label:'',
	// 	//  path: '/tabbox1',
	// 	//  name: 'tabbox1',
	// 	//  icon:'el-icon-location',
	// 	//  component: () => import('../views/tab_box/tabbox1.vue'),
	// 	// },
	// 	// {
	// 	//  // label:'',
	// 	//  path: '/my',
	// 	//  name: 'my',
	// 	//  icon:'el-icon-location',
	// 	//  component: () => import('../views/tab_box/tab_my.vue'),
	// 	// },
		
	// ]
 //  },
  
]
const router = new VueRouter({
  mode:'history',
  routes,
})

export default router
